<aside class="left box">
	<div class="bar-title">
		<h1 class="right">Lớp học</h1>
	</div>
	<ul>
		<?php foreach ($data['levels'] as $dt):?>
		<li><a class="<?php echo intval($dt['id']) == intval($data['level_id'])?'-active':''?>" href="<?php echo url_for2('product', array('cate_id' => $data['cate_id'], 'level_id' => $dt['id']))?>"><?php echo $dt['name']?></a></li>
		<?php endforeach;?>
		<li><a href="#">Sản phẩm mới</a></li>
	</ul>
	<!-- ######################################################## -->
	<div class="bar-title">
		<h1 class="right">Sản phẩm tiêu biểu</h1>
	</div>
	<?php 
	
	foreach($data['products'] as $news):
	$url = url_for2('product_detail', array('id' => $news['id'], 'cate_id' => $news['cate_id'], 'title' => UserStringHelper::titleToAddress($news['name'])));
	?>
	<article class="news-item">
		<a title="<?php echo $news['name']?>" alt="<?php echo $news['name']?>" href="<?php echo $url?>"><h1><?php echo $news['name']?></h1></a>
		<?php if (!empty($news['photo_url'])):?><div class="thumb"><a title="<?php echo $news['name']?>" alt="<?php echo $news['name']?>" href="<?php echo $url?>"><img src="<?php echo $news['photo_url']?>" title="<?php echo $news['name']?>" alt="<?php echo $news['name']?>"/></a></div><?php endif;?>
		<div class="des">
			<?php echo html_entity_decode($news['description'])?>
		</div>
		<div class="pro-order" style="margin-top: 10px"><span class="money-show"><?php echo $news['price']?></span>&#8363;<a class="button right" href="<?php echo $news['href']?>" title="<?php echo $news['name']?>" alt="<?php echo $news['name']?>">Mua hàng</a></div>
	</article>
	<div class="clr"></div>
	
	<?php	endforeach?>
	
	<div class="clr"></div>
	
	
</aside>
